package com.ruoyi.system.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 视频业务对象 pt_video
 *
 * @author ruoyi
 * @date 2022-03-26
 */

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel("视频业务对象")
public class PtSysVideoBo extends BaseEntity {

    /**
     * 
     */
    @ApiModelProperty(value = "", required = true)
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 实验id
     */
    @ApiModelProperty(value = "实验id", required = true)
    @NotNull(message = "实验id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long expId;

    /**
     * 视频地址
     */
    @ApiModelProperty(value = "视频地址", required = true)
    @NotBlank(message = "视频地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String url;

    /**
     * 标题
     */
    @ApiModelProperty(value = "标题", required = true)
    @NotBlank(message = "标题不能为空", groups = { AddGroup.class, EditGroup.class })
    private String title;

    /**
     * 简介
     */
    @ApiModelProperty(value = "简介", required = true)
    @NotBlank(message = "简介不能为空", groups = { AddGroup.class, EditGroup.class })
    private String intro;


}
